package com.bigknow.appstore.web.base.service;

import com.bigknow.appstore.web.base.entity.Permission;
import com.bigknow.appstore.web.framework.service.ICRUDService;

import java.util.List;

/**
 * Created by TwelveFoldEr on 2016/3/11.
 */
public interface IPermissionService extends ICRUDService<Permission> {

    List<Permission> getTree();

    List<Permission> getMenuTreeByUserId(String userId);

    List<Permission> getSelectedTreeByRoleId(String roleId);

    Permission getPermissionByUrl(String url);
}
